package com.rxh.pojo.payment;

import com.rxh.pojo.core.CoreOrderGoods;
import com.rxh.pojo.merchant.MerchantGoods;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created with IntelliJ IDEA.
 * User: 陈俊雄
 * Date: 2018/5/29
 * Time: 15:26
 * Project: Management
 * Package: com.rxh.pojo.merchant
 */
public class ProductDetail implements Serializable {
    // 商品ID
    private String goodId;
    // 商品名
    private String goodName;
    // 商品价格
    private BigDecimal price;
    // 商品数量
    private Integer qty;

    private CoreOrderGoods orderGoods;

    private MerchantGoods merchantGoods;

    public ProductDetail() {
    }

    public ProductDetail(String goodId, String goodName, BigDecimal price, Integer qty) {
        this.goodId = goodId;
        this.goodName = goodName;
        this.price = price;
        this.qty = qty;
    }

    public String getGoodId() {
        return goodId;
    }

    public void setGoodId(String goodId) {
        this.goodId = goodId;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getQty() {
        return qty;
    }

    public void setQty(Integer qty) {
        this.qty = qty;
    }

    public CoreOrderGoods getOrderGoods() {
        return orderGoods;
    }

    public void setOrderGoods(CoreOrderGoods orderGoods) {
        this.orderGoods = orderGoods;
    }

    public MerchantGoods getMerchantGoods() {
        return merchantGoods;
    }

    public void setMerchantGoods(MerchantGoods merchantGoods) {
        this.merchantGoods = merchantGoods;
    }

    @Override
    public String toString() {
        return "ProductDetail{" +
                "goodId='" + goodId + '\'' +
                ", goodName='" + goodName + '\'' +
                ", price=" + price +
                ", qty=" + qty +
                '}';
    }
}
